#ifndef _PORTMAPPING_H
#define _PORTMAPPING_H

#define DM_FAILURE -1
#define MAX_PM_NUM 15

/*
    virtualserver_rule=1,woods,192.168.0.174,TCP,6,2300,2300,Always;1,woods2,192.168.0.174,Both,256,3003,4003,Always;1,woods3,192.168.0.174,Both,256,20001,20004,Always
*/
typedef struct
{
    char enable[16];
    char vname[64];
    char local_ip[32];
    char proctol[16];
    char protol_num[16];
    char external_port[16];
    char internal_port[16];
    char schedule[16];

}PortMapping;

#endif
